This service returns employee master records restricted to 8 fields required for OnBase document indexing: Id, Name, HrStatus, Stat, PhoneCd, PhoneCd2, PhoneNo, PhoneNo2. Supports server-side pagination via TakeRows and SkipRows query parameters (e.g. TakeRows=100&SkipRows=0).
using System.Net;
using Newtonsoft.Json.Linq;
public void MethodName(parms){
string uri = "https://fusion.superion.com/FusionOSServices/v0/ONESolution/OnBase/HREmpmstr";
using (WebClient wc = new WebClient())
{
wc.Headers.Add("Content-Type", "application/json");
// Replace "ID" with supplied AppID
wc.Headers.Set("X-APPID", "ID");
// Replace "KEY" with supplied AppKey
wc.Headers.Set("X-APPKEY", "KEY");
string result = wc.DownloadString(uri);
var response = JObject.Parse(result);
var records = (JContainer)response["values"];
foreach (var record in records)
{
string id = (string)record["id"];
string name = (string)record["name"];
}
}
}
{
"values": [
{
"id": "E01010",
"name": "RAMUNDSEN, ENRIQUE",
"hrStatus": "A",
"stat": "A",
"phoneCd": "1",
"phoneCd2": "1",
"phoneNo": "5551234567",
"phoneNo2": ""
}
],
"count": 1
}